// JavaScript Document
$(function(){
	//banner 轮播
    var swiper_banner = new Swiper('#banner', {
	  loop: true,
	  autoplay: {
        delay: 4000,
        disableOnInteraction: false,
      },
	  pagination: {
	          el: '#banner .swiper-pagination',
	  				 clickable: true,
	  },
    });
	
	swiper_banner.el.onmouseover = function(){ //鼠标放上暂停轮播
	      swiper_banner.autoplay.stop();
	    }
	swiper_banner.el.onmouseleave = function(){
	      swiper_banner.autoplay.start();
	}
	
	//愿景 轮播
	
	// var de_num=3;
	// if($(".btnMenu").css("display")=="block"){
	// 	de_num=2;
	// }
	
	var swiper_de = new Swiper('#swiper_de .swiper_de', {
	  slidesPerView: 3,
	  speed:600,
	  loop:true,
	  autoplay: {
	    delay: 4000,
	    disableOnInteraction: false,
	  },
	  spaceBetween: 0,
	  navigation: {
	          nextEl: '#swiper_de .swiper-button-next',
	          prevEl: '#swiper_de .swiper-button-prev',
	        },
	});
	swiper_de.el.onmouseover = function(){ //鼠标放上暂停轮播
	      swiper_de.autoplay.stop();
	    }
	swiper_de.el.onmouseleave = function(){
	      swiper_de.autoplay.start();
	}
	
	
});